package com.itheima.d8_generics_class;

public class Test {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList<>();
        list.add("aaa");
        list.add("bbb");
        System.out.println(list);
        String s = list.get(1);
        System.out.println(s);
    }

    Myclass2<Cat,String > c2 = new Myclass2<>();

    myclass3<Animal> c3 = new myclass3<>();

    myclass3<Dog> c4 = new myclass3<>();

}
